thread-scoped
A std::thread::spawn()
that can access its current scope.
Stable fork of the deprecated std::thread::scoped()
Memory Unsafety
This interface is inherently unsafe if the JoinGuard
is allowed to leak without being dropped.
See rust-lang/rust#24292 for more details.
Alternatives
This crate is only provided as a fallback mirror for legacy dependency on the
deprecated libstd
interface. Using a modern and safe API instead is recommended: